import request from '@/utils/request'
import qs from 'qs'
export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function getUser(data) {
  return request({
    url: '/user/list',
    method: 'post',
    data
  })
}

export function setUser(data) {
  return request({
    url: '/user/setUserRefresh',
    method: 'post',
    data
  })
}

export function deleteUser(data) {
  return request({
    url: '/user/deleteUser',
    method: 'post',
    data
  })
}

export function refreshUser(data) {
  return request({
    url: '/user/Refresh',
    method: 'post',
    data
  })
}

// "reg":"/user/addUser"

export function reg(data) {
  return request({
    url: '/user/addUser',
    method: 'post',
    data
  })
}
